#ifndef KBCOMMON_H
#define KBCOMMON_H
#ifdef UNICODE
#define DebugOutput DebugOutputW
#else
#define DebugOutput DebugOutputA
#endif

char* GetErrMsg();

void DebugOutputW(const wchar_t * format,...);
void DebugOutputA(const char * format,...);

void Ansi2Unicode(char* szOldString, wchar_t* szNewString);
void Unicode2Ansi(wchar_t* szOldString, char* szNewString, int lenAnsi);

int char2int(char *str);
char* int2char(int num);

#endif

